package org.dwell.vertx3.demos.core;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import org.dwell.vertx3.protocol.VertMessage;

/**
 * Created by JianGuo on 2016/1/14.
 */
public class MyWorkerVerticle extends AbstractVerticle {

    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();
        DeploymentOptions options = new DeploymentOptions().setWorker(true);
        vertx.deployVerticle("org.dwell.vertx3.demos.core.MyWorkerVerticle", options);

    }

    @Override
    public void start() throws Exception {
        System.out.println("MyWorkerVerticle started!");
    }

    @Override
    public void stop() throws Exception {
        super.stop();
    }
}
